"""
Made by Wang Shiheng
CopyRight(C) From WangShiheng
All copyright(C) reserved
"""
# Author: WangShiheng
# Create Time:2022/05/28
# Package:

import platform
import pprint


def GetConfig():
    system_config = {'platform': {},
                     'python': {}}
    osn = platform.system()

    system_config['platform']["version"] = platform.platform()
    system_config['platform']['bit'], system_config['platform']['name'] = platform.architecture()

    system_config['python']['version'], system_config['python']['time'] = platform.python_build()
    system_config['python']['compiler'] = platform.python_compiler()
    system_config['python']['implementation'] = platform.python_implementation()

    return system_config


# print(platform.platform())
# print(platform.system())
# print(platform.architecture())
# print(platform.python_compiler())
# print(platform.machine())
# print(platform.version())
# print(platform.python_build())
# print(platform.python_compiler())
# print(platform.python_branch())
# print(platform.python_implementation())
# print(platform.python_revision())
# print(platform.python_version())
# print(platform.python_version_tuple())

pprint.pprint(GetConfig())
